/*
 * @Author: lmq
 * @Date: 2023-11-09 09:16:49
 * @LastEditTime: 2023-11-09 17:09:33
 */
import { Get, Put, Post, Delete } from '@/utils/request'

//分页查询设备列表
export function getBasicEquipmentList(data) {
    return Get("/basic-config/equipment/page", data)
}
//查询设备列表
export function getAllBasicEquipment(data) {
    return Get("/basic-config/equipment/list", data)
}
//添加设备  
export function addBasicEquipment(data) {
    return Post("/basic-config/equipment", data)
}
//编辑设备  
export function editBasicEquipment(data) {
    return Post("/basic-config/equipment/" + data.id, data)
}
// 删除设备
export function delBasicEquipment(data) {
    return Delete('/basic-config/equipment/' + data.id)
}
//分页查询节点列表
export function getBasicNodeList(data) {
    return Get("/basic-config/node/page", data)
}
//添加节点  
export function addBasicNode(data) {
    return Post("/basic-config/node", data)
}
//编辑节点  
export function editBasicNode(data) {
    return Post("/basic-config/node/" + data.id, data)
}
// 删除节点
export function delBasicNode(data) {
    return Delete('/basic-config/node/' + data.id)
}
//分页查询消毒液检测记录
export function getDisinfectantList(data) {
    return Get("/disinfectant/page", data)
}
//添加消毒液检测记录  
export function addDisinfectant(data) {
    return Post("/disinfectant", data)
}
// 删除消毒液检测记录
export function delDisinfectant(data) {
    return Delete('/disinfectant/' + data.id)
}

//分页查询测漏记录
export function getLeakList(data) {
    return Get("/leak/page", data)
}
//添加测漏记录  
export function addLeak(data) {
    return Post("/leak", data)
}
// 删除测漏记录
export function delLeak(data) {
    return Delete('/leak/' + data.id)
}
